package com.lixy.demo.spring4_highlight.ch1.di;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main {

	public static void main( String[] args ) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext( DIConfig.class );
		UseFunctionService service = (UseFunctionService)context.getBean( "useFunctionService" );
		System.out.println( service.sayHello("Spring Boot") );
		context.close();
	}

}
